{if $smarty.request.is_ajax neq 1}

<include file="inc:header" />
<?php
	$this->_var['back_url'] = wap_url("index","index");
	$this->_var['back_page'] = "#index";
	$this->_var['back_epage'] = $_REQUEST['epage']=="" ? "#index" : "#".$_REQUEST['epage'];
?>
<div class="page" id='{$data.act}'>
<include file="inc:title" />
<div class="buttons-tab fixed-tab position-fixed fixed-top" id="nav-tabs" style="width:100%;height:2rem;overflow-x: scroll">
	<div id="scroller">
		<ul style="width:100%">
		{foreach from="$data.article_cates" item="cate"}
			<li class="tab-link pull-left button {if $data.cate_id eq $cate.id} active{/if}" style="width: auto;margin:0;padding:0 0.6rem"><a href="#" onclick="now_page = 1;reloadpageK(this,'{wap_url a="index" r="news" p="id=$cate.id"}','#news','.news-list ul')" >{$cate.title}</a></li>
		{/foreach}
		</ul>
	</div>
</div>
<div class="content infinite-scroll pull-to-refresh-content" now_page="1"  data-distance="{$data.rs_count}"  all_page="{$data.page.page_total}" ajaxurl="{wap_url x="index" r="news#index"}" style="top:2.2rem">

<!-- 这里是页面内容区 -->
<div class="news-list list-block">
	<ul >
{/if}<!-- 默认的下拉刷新层 -->
    <div class="pull-to-refresh-layer" all_page="{$data.page.page_total}" >
        <div class="preloader"></div>
        <div class="pull-to-refresh-arrow"></div>
    </div>
	{foreach from=$data.list item="item"}
		<li>
	            <a href="#" onclick="RouterURL('{wap_url a="index" r="show_article" p="id=$item.id&epage=news"}','#show_article',2);" class="item-link item-content">
	              <div class="item-inner w_b">
	                <div class="item-title w_b_f_1">{$item.title}</div>
	              </div>
	            </a>
	         </li>
	{/foreach}
		<input type="hidden"  class="J_page_total" value="{$data.page.page_total}" />
{if $smarty.request.is_ajax neq 1}
</ul>
</div>
<!-- 加载提示符 -->
<div class="infinite-scroll-preloader">
  <div class="preloader">
  </div>
</div>
<include file="inc:footer" />
{/if}